﻿define(
    ['toastr'],
    function (toastr) {
        var
        // properties
            hashes = {
                store: '#/store',
                product_detail: '#/product_detail',
                link2: '#/link2',
            },

            logger = toastr, // use toastr for the logger
            throttle = 400,
            title = 'Moori',
            viewIds = {
                header: '#header',
                mainMenu: '#main-menu',
                topLinks: '#top-links',
                pagePath : '#page-path',
                logo : '#site-logo',
                pageTitle: '#page-title',
                bottomLinks : '#bottom-links',
                contactInfo:'#contact-info',
                store:'#store-view',
                product_detail:'#store-view',
                languageChooser:"#language-chooser"
            },
            viewTitles = {
            		store: 'store',
            		link2: 'link2',
            		product_detail: 'product_detail'
            },
            viewTplNames = {
                store: 'store-list',
                product_detail: 'product-detail',
                link2: 'link2'
            },

            toasts = {
                invalidRoute: 'The page you request is not exist',
                retreivedData: 'Data retrieved successfully',
                savedData: 'Data saved successfully',
                errorExceptionData: 'Could not retrieve data because data exception.',
            },

            pageName = {
            };

        init = function () {
        },
       // runMode = 'DEV', // have 2 mode: DEV: developer mode
        runMode = 'PRO', //              PRO: product mode
        settings = {
        },
        init();

        return {
            hashes: hashes,
            throttle: throttle,
            title: title,
            viewIds: viewIds,
            viewTitles: viewTitles,
            viewTplNames: viewTplNames,
            logger: logger,
            toasts: toasts,
            runMode: runMode
        };
    });